export default {
  state() {
    return {
      message: '',
      visible: false
    };
  },
  mutations: {
    show(state, message) {
      state.message = message;
      state.visible = true;
    },
    hide(state) {
      state.visible = false;
      state.message = '';
    }
  }
};
